{*
Replication is not allowed under the Open source software act, this file
may be edited but may not be used as yours or redistributed.
*}
<form action="index.php?personal_page=details&action=update" method=post >
<table cellpadding="3" class="main">
	<tr>
	  <td colspan="2"><h3>Personal Details</h3><br><br>
	    <input type="hidden" name="user_id" value="{user->user_id}">
      </td>
    </tr>
    <tr>
        <td colspan="2">
        <h4 align="center">{php}
            if(isset($_SESSION['_USER_UPDATED'])) {
            	$msg=$_SESSION['_USER_UPDATED'];
                echo $msg;
                }  
                unset($_SESSION['_USER_UPDATED']);
       	{/php}</h4></td>
    </tr>
    <tr>
      <td>First Name</td>
      <td><input type="text" name="user_firstname" size='30' maxlength='50' value="{user->user_firstname}" /><span class='error'>{$user_errors.user_firstname}</span></td>
    </tr>
    <tr>
      <td>Last Name</td>
      <td><input type="text" name="user_lastname" size='30' maxlength='50' value="{user->user_lastname}" /><span class='error'>{$user_errors.user_lastname}</span></td>
    </tr>
    <tr>
      <td>Address 1</td>
      <td><input type="text" name="user_addresse" size='30'  maxlength='75' value="{user->user_address}" /><span class='error'>{$user_errors.user_addresse}</span></td>
    </tr>
    <tr>
      <td>Address 2</td>
      <td><input type="text" name="user_uddresse1" size='30'  maxlength='75' value="{user->user_address2}" /></td>
    </tr>
    <tr>
      <td>Post Code</td>
  	  <td><input type='text' name='user_zip' size='8'  maxlength='20' value='{$user->user_zip}'><span class='error'>{$user_errors.user_zip}</span></td>
	</tr>
	<tr> 
      <td>City</td>
      <td><input type="text" name="user_city" size='30'  maxlength='50' value="{user->user_city}" /><span class='error'>{$user_errors.user_city}</span></td>
    </tr>
    <tr>
      <td>County</td>
      <td><input type="text" name="user_state" size='30'  maxlength='50' value="{$user->user_state}" /><span class='error'>{$user_errors.user_state}</span></td>
    </tr>
    <td >Country</td>
      <td>
    <select name='user_country'>
    {include file="countries.tpl" selected=$user->user_country}
    </select><span class='error'>{$user_errors.user_country}</span>
    </td>
    <tr>
      <td>Phone Number</td>
      <td><input type="text" name="user_phone" size='30'  maxlength='50' value="{user->user_phone}" /></td>
    </tr>
    <tr>
      <td>Fax</td>
      <td><input type="text" name="user_fax" size='30'  maxlength='50' value="{user->user_fax}" /></td>
    </tr>
    <tr>
      <td>Email</td>
      <td><input name="user_email" type="text" value="{user->user_email}" size='30'  maxlength='50' readonly="true" d /><span class='error'>{$user_errors.user_email}</span></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">To update your settings please enter your current password.</td>
    </tr>
    <tr>
    	<td>Current password<div class='error'>{$user_errors.password}</div> </td>
        <td><input type='password' name='password1' size='15'  maxlength='10'> </td>
    </tr>
    <tr>
    	<td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">
        <div align="center">
          <input type='submit' name='submit_update' value='Update'>
        </div></td>
    </tr>
</table>
</form>